package com.devmindset.jpatoolbox.onetoone;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.devmindset.jpatoolbox.OneToOneUtil;
import com.devmindset.jpatoolbox.base.BaseEntity;


@Entity(name = "INVERSE_11")
@Table(name = "INVERSE_11")
public class Inverse extends BaseEntity {
  
  @OneToOne(cascade = CascadeType.ALL, mappedBy = "inverse")
  private Forward forward;

  public Forward getForward() {
    return forward;
  }

  public void setForward(Forward forward) {
    OneToOneUtil.wire(this, forward, Inverse.class, Forward.class);
  }  

}
